<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
</head>
<body>
<div id="app">
    <input type="text" value="刘德华" v-model="name">
</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el : "#app",
        data:{
            name : "张学友"
        }
    })
</script>
</body>
</html>